#ifndef QTMUTEX_H
#define QTMUTEX_H

#include <QMutex>

#include <botan/mutex.h>

class QtMutex : public Botan::Mutex {
private:
	QMutex mutex;
public:
	QtMutex() : mutex(QMutex::Recursive) {}
	void lock() { mutex.lock(); }
	void unlock() { mutex.unlock(); }
	Mutex* clone() const { return new QtMutex; }
};

#endif

